var $ = require("../../utils/Ajax.js");
Page({
  data: {
    PictureUrl: getApp().PictureUrl,
    Refund: []
  },

  onLoad: function (options) {
    var that = this;
    wx.setNavigationBarTitle({
      title: "退款售后"
    })

    $.Ajax("api/reFundList","GET",{},function(res){
      if(res.s){
        that.setData({
          Refund: res.d.refund
        })
      }else{

      }
      console.log(res)
    })
  },

  onShow: function () {

  },

  // 点击查看退款详情
  RefundInfor: function(e){
    var Text = JSON.stringify(e.currentTarget.dataset.text);
    wx.setStorageSync('Text', Text);
    wx.navigateTo({
      url: '../RefundInfor/RefundInfor',
    })
  }
})